function getTime(){
    var date = new Date();
    var y = date.getFullYear();
    var mt = date.getMonth() + 1;
    var day = date.getDate();
    var h = date.getHours();
    var m = date.getMinutes();
    var s = date.getSeconds();
    return '当前时间：' + y + '年' + mt + '月' + day + '日-' + h + '时' + m + '分' + s + '秒';
}